/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.portalcenter.model.repository;

import cn.hallele.ms.portalcenter.model.entity.RoleMenuEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Collection;
import java.util.List;

/**
 * RoleMenuRepository
 *
 * @author anle5
 * @since 2024/5/31 0:12
 */
public interface RoleMenuRepository extends JpaRepository<RoleMenuEntity, Long>, JpaSpecificationExecutor<RoleMenuEntity> {
    /**
     * 通过角色id查询角色
     *
     * @param roleIds 角色id集合
     * @return 角色集合
     */
    List<RoleMenuEntity> findByRoleIdIn(Collection<Integer> roleIds);
}
